<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<link rel="stylesheet" type="text/css"
	href="../resources/admin/css/header.css">
<link rel="stylesheet" type="text/css"
	href="../resources/admin/css/criclemenu.css">
<link rel="stylesheet" type="text/css"
	href="../resources/admin/css/add-category.css">
<link rel="stylesheet" type="text/css"
	href="../resources/admin/css/category.css">
</head>
<body>
	<div style="margin-top: 50px;">Quản Lý Sản Phẩm</div>
	<div>
		<a href="addproduct.html" class="button">Thêm</a>
	</div>
	<div class="CSSTableGenerator">
		<table>
			<tr>
				<td>Mã Chi Tiết</td>
				<td>Tên Sản Phẩm</td>
				<td>Tác Vụ</td>
			</tr>
			<c:forEach var="product" items="${products}">
				<tr>
					<td>${product.productId}</td>
					<td>${product.productName }</td>
					<td>
						<div>
							<div>
								<a href="productDetails.html?productId=${product.productId}"
									class="button">Chi Tiết</a>
							</div>
							<p></p>
							<a href="product.html?productId=${product.productId}"
								class="button"> Sửa </a>
						</div>
						<p></p>
						<div>
							<a href="deleteProduct.html?productId=${product.productId}"
								class="button">Xóa</a>
						</div>
					</td>
				</tr>
			</c:forEach>


		</table>
	</div>
</body>
